package zhongjie;

public class Purchaser extends Person {//买房者类，继承Person
    public Purchaser(HouseMediator houseMediator) {
        super(houseMediator);//关联中介
    }
    @Override
    public void send(String message) {
        System.out.println("买房者发布信息：" + message);
        houseMediator.notice(this, message);//通知房东
    }
    @Override
    public void getNotice(String message) {
        System.out.println("买房者收到消息：" + message);
    }
}
